import { VxeGridPropTypes } from '@/components/VxeTable';

export default [
  {
    title: '菜单名称',
    field: 'title',
    treeNode: true,
    slots: {
      default: 'title_default'
    }
  },
  {
    title: '路由地址',
    field: 'path'
  },
  {
    title: '组件路径',
    field: 'component'
  },
  {
    title: '权限标识',
    field: 'authority'
  },
  {
    title: '排序',
    field: 'sortNumber',
    width: 90
  },
  {
    title: '可见',
    field: 'hide',
    width: 90
  },
  {
    title: '类型',
    field: 'menuType',
    width: 90
  },
  {
    title: '创建时间',
    field: 'createTime',
    visible: false
  },
  {
    width: 160,
    title: '操作',
    align: 'center',
    slots: { default: 'action' },
    fixed: 'right'
  }
] as VxeGridPropTypes.Columns;
